$(function(){
    //  tab控件处理
    $('#cryptbtn').click(function(){Node.tabAuto('#cryptodata');});
    $('#signbtn').click(function(){Node.tabAuto('#signdata');});
    Node.tabAuto();
});
var Node = $.util;
var sdb = Node.useDb('node_crypto');//  session_db
Node.tabs = ['#cryptodata','#signdata'];
Node.tabAuto = function(val,tabs){
    if(!tabs) tabs = this.tabs;
    if(this.empty(val)) val =  sdb.select('tabs');
    for(var k in tabs){
        if(val == tabs[k]){
            $(tabs[k]).show();
            sdb.update('tabs',tabs[k]);
        }
        else $(tabs[k]).hide();
    }
}
